var person = document.querySelectorAll('input')
var login = document.querySelector('.denglu')
console.log(login);
login.onclick=()=>{
     axios.post('/user/login', { ucode:person[0].value, pass: person[1].value }).then((res) => {
        console.log(res.data);
        if( res.data.code == 200 ){   
            console.log(res.data.token);
            alert('登陆成功!');
            location.href = './manage.html';
        }else{
            alert('登陆失败!')
        }
    })
}
